package com.cisetech.web.bobocai.qiantai;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cisetech.service.CodeService;
import com.cisetech.vo.bobocai.CodeVo;

@Controller
@RequestMapping(value="codeqiantai")
public class CodeQiangtaiController {
	@Autowired
	CodeService codeService;
	
	@ResponseBody
	@RequestMapping(value="/getlist",method=RequestMethod.POST)
	public List<CodeVo> getlist(CodeVo codeVo,HttpServletResponse response,HttpServletRequest request){
		try {
			codeVo.setRedian("1");
			List<CodeVo> list = codeService.getlistss(codeVo);
			return list;
		} catch (Exception e) {
			return new ArrayList<CodeVo>();
		}
	}
}
